//
//  main.m
//  Day7test
//
//  Created by dllo on 16/5/10.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>

// 练习1 定义一个老师的结构体,其中包含名字、年龄、工号。


struct teacher {
    char name[20];
    int age;
    int number;
} mathTeacher;

// 练习2

typedef struct teacher Teacher;




int main(int argc, const char * argv[]) {
    
    Teacher englishTeacher = {"老王",20,600};
    strcpy(englishTeacher.name , "老黑");
    
    return 0;
}
